import { useState } from 'react'
import { HashRouter,Route,Routes ,Navigate} from 'react-router-dom'
import AuthRouter from '../src/components/authRouter'
import GetRoutes from './router/index'
function App() {


  return (
    <HashRouter>
      {/* <Routes>
      <Route  path='/' element={<Navigate to='layout'/>} />
        <Route path='/layout'  element={<Layout></Layout>}>
      <Route index element={<Home></Home>}></Route>
      <Route path='user' element={<User></User>}></Route>
      </Route>
      
      </Routes>
       */}
       <AuthRouter>
       <GetRoutes></GetRoutes>
       </AuthRouter>
    </HashRouter>
  )
}

export default App
